package com.neusoft.zqygbc.neusoft_wenda.model;

import com.neusoft.zqygbc.neusoft_wenda.service.UserService;

import retrofit2.Call;

/**
 * Created by Lenovo on 2017/5/17.
 */

public class UserModel extends RetrofitBaseModel  {
    public Call login(String str_user, String str_password) {
        Call call = retrofitCallBuilder.buildCall(UserService.class, "getLogin", new Object[]{str_user,str_password});
        return call;
    }
    public Call checktel(String utel) {
        Call call = retrofitCallBuilder.buildCall(UserService.class, "Checktel", new Object[]{utel});
        return call;
    }
    public Call register(String username,String pwd,String utel) {
        Call call = retrofitCallBuilder.buildCall(UserService.class, "register", new Object[]{username,pwd,utel});
        return call;
    }
    public Call getuserinfo(String user_id) {
        Call call = retrofitCallBuilder.buildCall(UserService.class, "getUserById", new Object[]{user_id});
        return call;
    }

    public Call updatauserdata(String uid,String username,String email, String sex, String birth, String signature, String schoolname){
        Call call = retrofitCallBuilder.buildCall(UserService.class,"updatauserdata",new Object[]{uid,username,email,sex,birth,signature,schoolname});
        return call;
    }
    public Call ThumbUp(String qid){
        Call call = retrofitCallBuilder.buildCall(UserService.class,"ThumbUp",new Object[]{qid});
        return call;
    }

    public Call updatepwd(String uid, String oldpass, String newpass){
        Call call = retrofitCallBuilder.buildCall(UserService.class,"updatepwd",new Object[]{uid,oldpass,newpass});
        return call;
    }

}
